import request  from '../utils/request';
//查询所有的班级数据
export const queryClazzApi=(name,begin,end,page,pageSize)=> 
          request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

 //查询所有班级
export const queryAllClazz=()=> request.get('/clazzs/list')
 //根据id查询班级
export const queryByIdApi=(id)=> request.get(`/clazzs/${id}`);

//修改班级
export const updateClazzApi=(clazz) => request.put('/clazzs',clazz);

//添加班级
export const addClazzApi=(clazz)=> request.post('/clazzs',clazz);

//删除班级
export const deleteApi=(id) => request.delete(`/clazzs/${id}`);
 
